﻿@using NewRen.Models
@{
    ViewBag.Title = "牛棚管理";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    Business businsess = ViewBag.Business as Business;
}
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>商家信息展示</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="/Admin/Business/Index">商家管理</a>
            </li>
            <li>
                <a>商家信息展示</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>商家信息展示 <small>@businsess.BusinessName</small> <small><a href="/Admin/Business/Products/@businsess.ID">查看商品</a></small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="detail-table">
                            <tr>
                                <td class="row-title">商家名</td>
                                <td>@businsess.BusinessName</td>
                            </tr>
                            <tr>
                                <td class="row-title">描述</td>
                                <td>@businsess.Description</td>
                            </tr>
                            <tr>
                                <td class="row-title">城市</td>
                                <td>@businsess.City</td>
                            </tr>
                            <tr>
                                <td class="row-title">行业</td>
                                <td>@businsess.Industry</td>
                            </tr>
                            <tr>
                                <td class="row-title">手机</td>
                                <td>@businsess.Phone</td>
                            </tr>
                            <tr>
                                <td class="row-title">地址</td>
                                <td>@businsess.Address</td>
                            </tr>
                            <tr>
                                <td class="row-title">图像</td>
                                @if (businsess.Picture != null)
                                {
                                    <td><img src="/Admin/Business/ShowPicture/@businsess.ID" alt="@businsess.BusinessName" width="60" height="60" /></td>
                                }
                                else
                                {
                                    <td><img src="~/images/userphoto.png" alt="@businsess.BusinessName" width="60" height="60" /></td>
                                }
                            </tr>
                            <tr>
                                <td class="row-title">邮箱</td>
                                <td>@businsess.Email</td>
                            </tr>
                            <tr>
                                <td class="row-title">优先级</td>
                                <td>@businsess.Priority</td>
                            </tr>
                            <tr>
                                <td class="row-title">认证</td>
                                <td>@(businsess.IsVerified == true ? "是" : "否")</td>
                            </tr>
                            <tr>
                                <td class="row-title">微信</td>
                                <td>@businsess.WhatApp</td>
                            </tr>
                            <tr>
                                <td class="row-title">微博</td>
                                <td>@businsess.Weibo</td>
                            </tr>
                            <tr>
                                <td class="row-title">注册时间</td>
                                <td>@businsess.AddTime</td>
                            </tr>
                            <tr>
                                <td class="row-title">上次登录时间</td>
                                <td>@businsess.LastLoginTime</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
